package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.QuestionFollow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionFollowMapper {
    int deleteByPrimaryKey(Long  id);

    int insert(QuestionFollow record);

    QuestionFollow selectByPrimaryKey(Long id);

    List<QuestionFollow> selectAll();

    int updateByPrimaryKey(QuestionFollow record);

    void deleteQuestionFollowById(@Param("questionId") Long questionId, @Param("userId") Long userId);

    QuestionFollow selectFollowById(@Param("questionId") Long questionId, @Param("userId") Long userId);
}